package com.aplink.generic.util.objectrule;

import com.aplink.generic.pojo.GenericAttribute;

public class ValueEqualRule extends ValueBaseRule {

    public ValueEqualRule() {
        this.value = "";
    }

    public ValueEqualRule(final String mValue) {
        this.value = mValue;
    }

    @Override
    public boolean checkRule(final GenericAttribute att) {
        return att.getValue().toString().compareToIgnoreCase(this.value) == 0;
    }

}
